DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Making use of the viewhelperΒΆ

Target group: Administrators and Developers

The easiest way to use this extension is FLUID and new viewhelper. The file EXT:th_rating\Resources\Examples\Templates\blog_example\Post\Index.html could be a good example:

In your template first propagate the new namespace:

{namespace thr=Thucke\ThRating\ViewHelpers}

Next create the needed ratingobject and ratingsteps as described below. Modify your FLUID template and include the extension viewhelper, e.g.:

<f:format.raw>
   <thr:rating ratetable="tx_blogexample_domain_model_post" ratefield="uid" ratedobjectuid="{post.uid}" ></thr:rating>
</f:format.raw>

Important

CObject viewhelpers like those of Rating AX must be embedded in a <f:format.raw> viewhelper.